//
//  ContactResultViewController.h
//  HandyDialer
//
//	Developed by Team Synergy
//  Created by Jacky Li on 11/24/11.
//  Coders: Jacky Li and Jordan Tseng 
//  Graphic Designer: Derek Fong
//  Developer: Brad Lisson, Derek Fong, Jacky Li, Jeremy Gangoso, Jordan Tseng
//  Copyright HandyDialer 2011. All rights reserved.
//
//  Class Descrption: Shows the result of the search when searching for contacts
//  
//  Member Variables:
//  int counter
//      - stores the numerical number of where the button it is currently on
//  NSTimer *uniTimer    
//      - Highlighting done in seconds
//  NSUserDefaults *defaults
//      - Setting default status of the setting screen
//  float speed
//      - Speed of the highlighting for the entire program
//  NSString *highlightColor
//      - type of color highligh is done in
//  NSString *themeColor
//      - type of theme for the whole application
//  CFMutableArrayRef resultList;
//      - list of results gotten from the iPhone address book
//  int pageNum,maxPages;
//      - number of list and maxmium nimber of lists
//  Member functions:
//  + (IBAction)switchView:(id)sender
//              - Actually switching to that screen 
//  + (void)optionChange
//              - changes the screen according to which option was chosen
//  + (void)highlightChange:(NSString *)picture
//              - change highlighting between row and column pictures
//  + (NSString *)getContactName:(int)entry;
//              - gets the contacts name from iphone addressbook
//  + (void)refreshResultDisplay;
//              - refresh the results when each time the previous or next button is pressed
//	+ (void)returnToView:(NSString *)viewName:(UIViewController *)previousView
//					- recursively traverse parent views to find the view to return to
//  + (NSString *)stripNumber:(NSString *)rawNumber;
//              - strips the space and the ( ) in the number being sent to call
//
//	Bugs (unfixed):
//				None found so far
//
//	Unfinished Features:
//				None
//

#import <UIKit/UIKit.h>
#import <AddressBook/AddressBook.h>
#import "ContactCardViewController.h"
#import "DataStorage.h"

@interface ContactResultViewController : UIViewController
{
    int counter;
    NSTimer *uniTimer;
    NSUserDefaults *defaults;
    float speed;
    NSString *highlightColor;
    NSString *themeColor;
	CFMutableArrayRef resultList;
	int pageNum,maxPages;
    IBOutlet UIImageView *highlightArea;   
    IBOutlet UIImageView *backgroundArea;
	IBOutlet UILabel *contact1, *contact2, *contact3, *contact4, *pageDisplay;

}

- (IBAction)switchView:(id)sender;

- (void)highlightChange:(NSString *)picture;

- (void)optionChange;

- (void)searchContact:(NSString *)keyword;

- (NSString *)getContactName:(int)entry;

- (void)refreshResultDisplay;

- (NSString *)stripNumber:(NSString *)rawNumber;

- (void)returnToView:(NSString *)viewName:(UIViewController *)previousView;


@property (nonatomic, retain)UILabel *contact1, *contact2, *contact3, *contact4, *pageDisplay;

@property (nonatomic, retain)UIImageView *highlightArea;
@property (nonatomic, retain)UIImageView *backgroundArea;
@end
